package com.ruoyi.hr.service.impl.welfare.welfarebaseadjustment;


import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.hr.domain.Authority;
import com.ruoyi.hr.mapper.welfare.welfarebaseadjustment.AccuBaseAdjustmentHistoryMapper;
import com.ruoyi.hr.service.welfare.welfarebaseadjustment.AccuBaseAdjustmentHistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class AccuBaseAdjustmentHistoryImpl implements AccuBaseAdjustmentHistoryService {

    @Autowired
    AccuBaseAdjustmentHistoryMapper accuBaseAdjustmentHistoryMapper;

    @DataSource(value = DataSourceType.SLAVE)
    @Override
    public List<Map<String, Object>> findData(Map<String, Object> map, List<Authority> authorities, int isAdmin) {
        return accuBaseAdjustmentHistoryMapper.findData(map, authorities, isAdmin);
    }
}
